{include file="public/header" /}



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_exampaper}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    
    <form method="get" name="formSearch" id="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt>{$Think.lang.exampaper_name}</dt>
                <dd><input type="text" value="{$Request.param.exampaper_name}" name="exampaper_name" class="txt"></dd>
            </dl>
            <dl>
                <dt>{$Think.lang.exampaper_type}</dt>
                <dd>
                    <select name="exampaper_type">
                        <option value="">{$Think.lang.ds_please_choose}...</option>
                        <option value="0" {if condition="$Request.param.exampaper_type eq '0'"}selected{/if}>普通试卷</option>
                        <option value="1" {if condition="$Request.param.exampaper_type eq '1'"}selected{/if}>随机试卷</option>
                    </select>
                </dd>
            </dl>
            <div class="btn_group">
                <input type="submit" class="btn" value="{$Think.lang.ds_search}">
                <a href="{:url('Exampaper/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
            </div>
        </div>
    </form>
    
    <table class="ds-default-table">
        <thead>
            <tr>
                <th>{$Think.lang.exampaper_name}</th>
                <th>{$Think.lang.exampaper_time}</th>
                <th>{$Think.lang.exampaper_score}</th>
                <th>{$Think.lang.exampaper_passscore}</th>
                <th>{$Think.lang.exampaper_type}</th>
                <th>{$Think.lang.exampaper_addtime}</th>
                <th>{$Think.lang.ds_handle}</th>
            </tr>
        </thead>
        <tbody>
            {notempty name="exampaper_list"}
            {foreach name="exampaper_list" item="exampaper"}
            <tr>
                <td>{$exampaper.exampaper_name}</td>
                <td>{$exampaper.exampaper_time}</td>
                <td>{$exampaper.exampaper_score}</td>
                <td>{$exampaper.exampaper_passscore}</td>
                <td>{if $exampaper.exampaper_type eq 0}普通试卷{else/}随机试卷{/if}</td>
                <td>{$exampaper.exampaper_addtime|date='Y-m-d'}</td>
                <td>
                    <a href="{:url('home/Memberexampaper/answer',['exampaper_id'=>$exampaper.exampaper_id])}" class="dsui-btn-view" target="_blank"><i class="iconfont"></i>考试链接</a>
                    <a href="javascript:dsLayerOpen('{:url('Exampaper/edit',['exampaper_id'=>$exampaper.exampaper_id])}','{$Think.lang.ds_edit}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
                    <a href="javascript:dsLayerConfirm('{:url('Exampaper/drop',['exampaper_id'=>$exampaper.exampaper_id])}','{$Think.lang.ds_ensure_del}')"  class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
                    <a href="{:url('Exampaper/config',['exampaper_id'=>$exampaper.exampaper_id])}" class="dsui-btn-edit"><i class="iconfont"></i>配置题目</a>
                    <a href="{:url('Exampaper/exampaperlog',['exampaper_id'=>$exampaper.exampaper_id])}" class="dsui-btn-view"><i class="iconfont"></i>考试详情</a>
                    
                </td>
            </tr>
            {/foreach}
            {else /}
            <tr class="no_data">
                <td colspan="10">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
        </tbody>
    </table>
    {$show_page|raw}
</div>